package com.ajobs.project.comp.prop;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 属性绑定
 *
 * 环境变量：
 *      使用 _ 替换 .
 *      删除 -
 *      转换为大写
 *    示例：spring.main.log-startup-info =>  SPRING_MAIN_LOGSTARTUPINFO
 *
 * ====================================
 *
 * yml list:
 *
 * my:
 *   list:
 *   # pojo
 *   - name: "my name"
 *     description: "my description"
 *   - name: "another name"
 *     description: "another description"
 *
 * yml map:
 *
 * my:
 *   map:
 *     # key
 *     key1:
 *       # pojo
 *       name: "my name 1"
 *       description: "my description 1"
 *
 * =====================================
 *
 * @author weijianxun
 */

/**
 * 使用 {@link Component @Component} 或者 {@link EnableConfigurationProperties @EnableConfigurationProperties}
 */
@ConfigurationProperties(prefix = "example")
public class PropertyBinding {
}
